home *** CD-ROM | disk | FTP | other *** search
- #Inventor V2.0 ascii
- # Self Manipulating Cube
- Separator {
- Rotation {
- rotation 1 0 0 -1.5708
- }
- # Interface for cube control
- Separator {
- BaseColor { rgb 1 0 0 }
- DEF AXIS_X_DRAGGER Translate1Dragger {
- translation 1 0 0
- translator DEF DRAG_BALL Separator {
- Cube { width .2 height .2 depth .2 }
- }
- translatorActive DEF DRAG_YELLOW_BALL Separator {
- BaseColor { rgb 1 1 0 }
- Cube { width .2 height .2 depth .2 }
- }
- }
- }
- Separator {
- BaseColor { rgb 0 0 1 }
- Rotation {
- rotation 0 0 1 -1.5708
- }
- DEF AXIS_Y_DRAGGER Translate1Dragger {
- translation 1 0 0
- translator USE DRAG_BALL
- translatorActive USE DRAG_YELLOW_BALL
- }
- }
- Separator {
- BaseColor { rgb 0 1 0 }
- Rotation {
- rotation 0 1 0 -1.5708
- }
- DEF AXIS_Z_DRAGGER Translate1Dragger {
- translation 1 0 0
- translator USE DRAG_BALL
- translatorActive USE DRAG_YELLOW_BALL
- }
- }
- Separator {
- BaseColor { rgb .8 .8 .8 }
- Cube {
- width 2 = Calculator {
- A = USE AXIS_X_DRAGGER . translation
- expression [ "oa = 2.0*A[0]" ]
- }
- . oa
- height 2 = Calculator {
- A = USE AXIS_Y_DRAGGER . translation
- expression [ "oa = 2.0*A[0]" ]
- }
- . oa
- depth 2 = Calculator {
- A = USE AXIS_Z_DRAGGER . translation
- expression [ "oa = 2.0*A[0]" ]
- }
- . oa
-
- }
- }
- }
-
-